package goover.unit06;

public class RunnableDemo04 {
    public static void main(String[] args){
        Thread06 t = new Thread06();
        Thread t1 = new Thread(t);
        t1.setDaemon(true);
        t1.start();
        for(int i = 0;i < 5;i++){
            System.out.println(i);
        }
    }
}
class Thread06 implements Runnable{
    @Override
    public void run() {
        while (true){
            System.out.println(Thread.currentThread().getName() + "后台运行");
        }
    }
}